package fun.sweeper.erp.entity;

import fun.sweeper.base.entity.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户余额变动对象 hh_user_account
 * @author chongjin
 * @date 2020-12-23
 */
public class HhUserAccount extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long uaId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 之前余额
     */
    private String beforeBalance;

    /**
     * 金额
     */
    private String thisAmount;

    /**
     * 之后余额
     */
    private String afterBalance;

    /**
     * 操作时间
     */
    private Date operateTime;

    /**
     * 发生事件（11：存款，12：扣款）
     */
    private String evenId;

    /**
     * 订单号
     */
    private String orderId;

    public void setUaId(Long uaId) {
        this.uaId = uaId;
    }

    public Long getUaId() {
        return uaId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setBeforeBalance(String beforeBalance) {
        this.beforeBalance = beforeBalance;
    }

    public String getBeforeBalance() {
        return beforeBalance;
    }

    public void setThisAmount(String thisAmount) {
        this.thisAmount = thisAmount;
    }

    public String getThisAmount() {
        return thisAmount;
    }

    public void setAfterBalance(String afterBalance) {
        this.afterBalance = afterBalance;
    }

    public String getAfterBalance() {
        return afterBalance;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setEvenId(String evenId) {
        this.evenId = evenId;
    }

    public String getEvenId() {
        return evenId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("uaId", getUaId())
                .append("userId", getUserId())
                .append("beforeBalance", getBeforeBalance())
                .append("thisAmount", getThisAmount())
                .append("afterBalance", getAfterBalance())
                .append("operateTime", getOperateTime())
                .append("evenId", getEvenId())
                .append("remark", getRemark())
                .toString();
    }
}
